package top.javarem.medical.service;


import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import top.javarem.medical.domain.dto.MedicalKnowledgeDTO;
import top.javarem.medical.domain.po.Knowledge;

import java.util.List;

/**
* @description 针对表【knowledge(中医科普知识库)】的数据库操作Service
*/
public interface KnowledgeService extends IService<Knowledge> {

    List<MedicalKnowledgeDTO> queryByCategoryId(Integer categoryId);

    // 分页查询
    List<MedicalKnowledgeDTO> pageQuery(Integer categoryId, String title, Integer pageNum, Integer pageSize);

    // 新增知识
    boolean addKnowledge(MedicalKnowledgeDTO dto);

    // 更新知识
    boolean updateKnowledge(MedicalKnowledgeDTO dto);

    // 删除知识
    boolean deleteKnowledge(Long id);

}
